package com.gaoyubo.controller;

import com.gaoyubo.entity.SearchVO;
import com.gaoyubo.service.CityService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("feign")
public class CityController {
  @Autowired
  CityService cityService;
  @RequestMapping("list")
  public PageInfo pageInfo(SearchVO searchVO){
    return cityService.pageInfo(searchVO);
  }
}
